﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Usr.Repository.Entities
{
    /// <summary>
    /// 用户收货地址
    /// </summary>
    [Table("usr_harvestAddress"), Comment("用户收货地址"), Index(nameof(UsreId))]
    public class HarvestAddress : EfEntity
    {
        /// <summary>
        /// 
        /// </summary>
        [Comment("用户ID")]
        public long UsreId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Comment("收货人姓名"), MaxLength(50)]
        public string Name { get; set; }

        /// <summary>
        /// 收货人电话
        /// </summary>
        [Comment("收货人电话"), MaxLength(20)]
        public string Tele { get; set; }

        /// <summary>
        /// 省
        /// </summary>
        [Comment("省"), MaxLength(20)]
        public string ProvinceCode { get; set; }

        /// <summary>
        /// 省
        /// </summary>
        [Comment("省"), MaxLength(50)]
        public string ProvinceName { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        [Comment("市"), MaxLength(20)]
        public string CityCode { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        [Comment("市"), MaxLength(50)]
        public string CityName { get; set; }

        /// <summary>
        /// 区/县
        /// </summary>
        [Comment("区/县"), MaxLength(20)]
        public string AreaCode { get; set; }

        /// <summary>
        /// 区/县
        /// </summary>
        [Comment("区/县"), MaxLength(50)]
        public string AreaName { get; set; }

        /// <summary>
        /// 街道/镇
        /// </summary>
        [Comment("街道/镇"), MaxLength(20)]
        public string? StreetCode { get; set; }

        /// <summary>
        /// 街道/镇
        /// </summary>
        [Comment("街道/镇"), MaxLength(50)]
        public string? StreetName { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        [Comment("详细地址"), MaxLength(200)]
        public string Address { get; set; }

        /// <summary>
        /// 是否是默认地址
        /// </summary>
        [Comment("是否是默认地址")]
        public bool IsDefault { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [Comment("姓名"), MaxLength(50)]
        public string Compellation { get; set; }

        /// <summary>
        /// 身份证
        /// </summary>
        [Comment("身份证"), MaxLength(18)]
        public string IDCard { get; set; }
    }
}
